package com.example.demo.design.creational.abstractfactory;

/**
 * 具体工厂：上饶农场类
 *
 * @author luowj12
 * @since 2021/5/7 10:58
 */
public class SRfarm implements Farm {
    @Override
    public Animal newAnimal() {
        System.out.println("新马出生！");
        return new Horse();
    }
    @Override
    public Plant newPlant() {
        System.out.println("水果长成！");
        return new Fruitage();
    }
}
